import time

import pyautogui
from selenium.webdriver import ActionChains

from CaseAW.GridBase import winAppBase


class mesh_base(winAppBase):
    def move_nodes_exact(self):
        """
        点击多层标签
        """
        action=ActionChains(self.driver)
        self.driver.find_element_by_name("非结构网格").click()
        self.driver.find_element_by_name("编辑网格").click()
        hover_element=self.driver.find_element_by_name("移动节点")
        action.move_to_element(hover_element).perform()
        location=hover_element.location
        pyautogui.moveTo(location["x"],location["y"])
        time.sleep(3)
        self.driver.find_element_by_name("设置位置移动节点").click()